import request from '@/utils/request'

// 查询退款商品管理列表
export function listRefundGoods(query) {
  return request({
    url: '/order/refundGoods/list',
    method: 'get',
    params: query
  })
}

// 查询退款商品管理详细
export function getRefundGoods(refundGoodsId) {
  return request({
    url: '/order/refundGoods/' + refundGoodsId,
    method: 'get'
  })
}

// 新增退款商品管理
export function addRefundGoods(data) {
  return request({
    url: '/order/refundGoods',
    method: 'post',
    data: data
  })
}

// 修改退款商品管理
export function updateRefundGoods(data) {
  return request({
    url: '/order/refundGoods',
    method: 'put',
    data: data
  })
}

// 删除退款商品管理
export function delRefundGoods(refundGoodsId) {
  return request({
    url: '/order/refundGoods/' + refundGoodsId,
    method: 'delete'
  })
}
